//
//  YMTestReportChartsCell.m
//  YMMedical
//
//  Created by y s on 2023/7/21.
//

#import "YMTestReportChartsCell.h"
#import "YMTestReportChartsView.h"

@interface YMTestReportChartsCell ()

@property (nonatomic, strong) YMTestReportChartsView *vCharts;

@end

@implementation YMTestReportChartsCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUI];
    }
    return self;
}

#pragma mark - UI methods
- (void)setUI{
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.contentView.backgroundColor = [UIColor clearColor];
    self.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.vCharts];
    [self.vCharts mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
}

#pragma mark - public methods
+ (CGFloat)getCellHeight{
    return [SFitUtil fit:335];
}
- (void)setDictData:(NSDictionary *)dictData{
    self.vCharts.dict = dictData;
}

#pragma mark - Event Action


#pragma mark - setter and getter
- (YMTestReportChartsView *)vCharts{
    if (_vCharts == nil){
        _vCharts = [[YMTestReportChartsView alloc] init];
    }
    return _vCharts;
}

@end
